use axum::{
    routing::{ get, post },
    Router
};
mod master;
mod select_folder;
pub fn auth_routes() -> Router{
    Router::new()
    .route("/create_table", post(master::create_table))
    .route("/create_template", post(master::create_template))
    .route("/read_table", get(master::read_table))
    .route("/save_table", post(master::save_table))
    .route("/save_sql_table", post(master::save_sql_table))
    .route("/read_model", get(master::read_model))
    .route("/save_model", post(master::save_model))
    .route("/remove", post(master::remove))
    .route("/save_front_temp", post(master::save_front_temp))
    .route("/pick_folder", post(select_folder::pick_folder))
    .route("/pick_file", post(select_folder::pick_file))
}